<?php
	/**
	* @author trungdt 
	* @since Nov 3, 2011
	* 
	* Change logs
	* 
	*/
	if (!defined("EXPONENT")) exit("");
	if (!exponent_users_isLoggedIn())
		die();
	$item = null;
	if (isset($_POST['id'])) {
		$item = $db->selectObject("requestmodule_request","id=".intval($_POST['id']));
		$loc = unserialize($item->location_data);
		if ($item->user_id == $user->id)
		{
			$item->cancel_request=aboid_getCurrentTime();
			$db->updateObject($item,"requestmodule_request");
		}
	}
	echo "OK";
	exponent_theme_setFlagAjaxAction(true);
?>
